package groupware;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Project extends Task{


	  @Persistent
	  private String projectId;

	  public Project(
		  User owner,
		  //Group group,
		  String projectId, 
		  String title,
	      String description,
	      Date startDate,
	      boolean isPublic,
	      Date dueDate) {
		  super(owner,
				  //Group group,
				  title,
				  description,
				  startDate,
			      isPublic,
			      dueDate);
	    this.projectId = projectId;
	   
	  }
	  public String getProjectId(){
		  return this.projectId;
	  }

	  public String getURLPath() {
	    String key = projectId;
	    return "/resource?key=" + key;
	  }

	  public String getDisplayURL() {
	    String key = projectId;
	    return "/display?key=" + key;
	  }


	}
